i = 0
while i < 100:
    i += 1
print(f'这是第{i}次循环')

#1-100的累加和
a = 1
result = 0
while a <= 100:
    result = result + a
    a += 1
print(result)
#1-100偶数累加和
#方法1
x = 2
y = 0
while x <= 100:
    y = y+x
    x += 2
print(f"这是第{y}次")
#方法2
i = 1
re = 0
while i <= 100:
    if i % 2 == 0:
        re += i
    i += 1
print(re)



